package com.nba.service.impl;

import com.nba.bean.Code;
import com.nba.dao.CodeDao;
import com.nba.dao.impl.CodeDaoImpl;
import com.nba.service.CodeService;

public class CodeServiceImpl implements CodeService {

	@Override
	public Code loginCode() {
		CodeDao codedao = new CodeDaoImpl();
		int num = (int)(Math.random()*10)+1;
		return codedao.selectCode(num);
	}
	
	
}
